What does APHY WW stand for?
Enable
Unset bit 0x8000 in the APHY All CRS Register PHYRegister 0x29
Set bit 0x1000 in PHYRegister 0x1B
MaskSet PHYRegister 0x82 with mask 0xF0FF and set with 0x300
Set bit 0x80 in RadioRegister 0x9
Set bit 0x10 in RadioRegister 0x13
MaskSet RadioRegister 0x12 with mask 0xFFFC and set with 0x2
Write 0x1FF9 to PHYRegister 0x1C
Mask PHYRegister 0x20 with mask 0xFF0F
If the PHY Revision is < 3
Write 0xF7F to InternalLookupTable 0x3C00 offset 0xC
Write 0xF7F to RadioRegister 0x2
- Otherwise
Write 0x7BF to RadioRegister 0x2
Write 0x3ED5 to PHYRegister 0x3ED5
Backup the value of PHYRegister 0x3
MaskSet RadioRegister 0x3 with mask 0xFFF8 and set with 0x5
Set bit 0x0004 in RadioRegister 0x4
- Loop 16 times, from 16 to 31
Write the loop position to RadioRegister 0x13
Read the value of PHYRegister 0x7F then AND with 0xFF, if it's 0, break the loop and save the current loop position
If the value of PHYRegister 0x7F is >= 0x80
- Subtract it from 0x100
- If this value is the least we've found so far, save the loop position
Restore the value of PHYRegister 0x3
Mask RadioRegister 0x4 with mask 0xFFFB
Write the saved loop position to RadioRegister 0x13
Write 0xFFEC to InternalLookupTable 0x4A00 offset 0
Write 0x1E80 to PHYRegister 0xB7
Write 0x1C00 to PHYRegister 0xB6
Write 0x0EC0 to PHYRegister 0xB5
Write 0x00C0 to PHYRegister 0xB2
Write 0x1FFF to PHYRegister 0xB9
MaskSet PHYRegister 0xB8 with mask 0xF000 and set with 0x53
MaskSet PHYRegister 0x61 with mask 0xFE1F and set with 0x120
MaskSet PHYRegister 0x13 with mask 0x0FFF and set with 0x3000
MaskSet PHYRegister 0x14 with mask 0x0FFF and set with 0x3000
Write 0x17 to InternalLookupTable 0x0 offset 0x6
Write 0xF to InternalLookupTable 0x0 offset 0x0
Write 0xF to InternalLookupTable 0x0 offset 0x1
Write 0xF to InternalLookupTable 0x0 offset 0x2
Write 0xF to InternalLookupTable 0x0 offset 0x3
Write 0xF to InternalLookupTable 0x0 offset 0x4
Write 0xF to InternalLookupTable 0x0 offset 0x5
Write 0xE to InternalLookupTable 0x0 offset 0xD
Write 0x11 to InternalLookupTable 0x0 offset 0xE
Write 0x13 to InternalLookupTable 0x0 offset 0xF
Write 0x5030 to PHYRegister 0x33
Set bit 0x8000 in the APHY All CRS Register PHYRegister 0x29
Disable
Unset bit 0x8000 in the APHY All CRS Register PHYRegister 0x29
Mask PHYRegister 0x1B with mask 0xEFFF
MaskSet PHYRegister 0x82 with mask 0xF0FF and set with 0x100
MaskSet RadioRegister 0x9 with mask 0xFF3F and set with 0x40
Set bit 0x8000 in the APHY All CRS Register PHYRegister 0x29